﻿using System;
using System.Web.Security;
using System.Web.UI.WebControls;
using BLL;

public partial class ViewTest_ViewYourself_ViewUnion : System.Web.UI.Page
{
    private string str1;

    protected void Page_Load(object sender, EventArgs e)
    {
        str1 = Membership.GetUser().UserName.ToString();
        Label2.Text = str1;
    }

    protected void BindTest()
    {
        DateTime dt1 = DateTime.Parse(this.TextBox1.Text + " 00:00:00");
        DateTime dt2 = DateTime.Parse(this.TextBox2.Text + " 00:00:00");
        PackageProduct test = new PackageProduct();
        //ATEUser aTEUser = new ATEUser();
        //ATEUserInfo aTEUserInfo = aTEUser.GetATEUser(str1);
        //if (aTEUserInfo.UserID == str1)
        //{
            GridView2.DataSource = test.GetPackageTestsbyUIDDT(str1, dt1, dt2);
            GridView2.DataBind();
        //}           
    }

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        this.GridView2.PageIndex = e.NewPageIndex;
        BindTest();
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        BindTest();
    }
}
